<template>
  <div id="app">
      <div class="box">
        <h3>Vue 插槽</h3>
        <c-item title="练习插槽" > 
          <span slot="time">2020年3月13日</span>
          <span slot="author">作者</span>
        </c-item>
      </div>
  </div>
</template>

<script>
// import CItem from "./components/CItem"

export default {
  components: {
    "c-item": () => import("./components/CItem")
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.box {
  border-bottom: 1px solid red;
  margin-bottom: 20px;
  padding-bottom: 5px;
}
.tip {
  color: red;
}
</style>